<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\backstage\validate;

use think\Validate;

class GoodsValidate extends Validate
{
    protected $rule = [
        'goodsname' => 'require',
        'stock' => 'require',
    ];
    protected $message = [
        'goodsname.require' => '商品名称不能为空',
        'stock.require' => '库存不能为空',

    ];
}